#ifndef COMMAHANDLER_H
#define COMMAHANDLER_H

#include <memory>
#include "ParseHandlerBase.h"
#include "OperatorHandler.h"

namespace CExpression
{
	class CommaHandler:public ParseHandlerBase
	{
	public:
		CommaHandler():ParseHandlerBase()
		{
			this->next=WrapperPtr<IParseHandler>(new OperatorHandler());
		}
		virtual bool ParseCore(ParseContext &context);
	private:
		void ParseComma(std::shared_ptr<ExpressionToken> token,ParseContext &context);
		bool CheckComma(std::shared_ptr<ExpressionToken> token,ParseContext &context);
	};
}

#endif